package org.example.demo21.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * @author guocong
 * @since 2023/3/13 16:51
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("eplus_user")
@Builder
public class UserPO extends BasePO {


    @Serial
    private static final long serialVersionUID = -5222603548255072956L;


    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("account")
    private String account;

    @TableField("password")
    private String password;

    @TableField("name")
    private String name;

    @TableField("real_name")
    private String realName;

    @TableField("avatar")
    private String avatar;

    @TableField("email")
    private String email;

    @TableField("phone")
    private String phone;

    @TableField("birthday")
    private Date birthday;

    @TableField("sex")
    private Integer sex;

    @TableField("role_id")
    private String roleId;

    @TableField("dept_id")
    private String deptId;

    @TableField("create_user")
    private Long createUser;

    @TableField("create_dept")
    private Long createDept;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_user")
    private Long updateUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("status")
    private Integer status;

    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("code")
    private String code;

    @TableField("post_id")
    private String postId;


}
